From: Matthieu Gallien Date: Fri, 4 Apr 2025 14:00:23 +0000 (+0200) Subject: remove costly availability check that is never used X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2^2~47^2 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=7aa76f57eb55556c5e7c3b39e38e4f050bfdba62;p=nextcloud-desktop.git remove costly availability check that is never used we never read the value computed computing it means a recursive visit of the whole folder hierarchy which could be taking a long time Signed-off-by: Matthieu Gallien --- diff --git a/src/libsync/propagatorjobs.cpp b/src/libsync/propagatorjobs.cpp index 86086c335..002480c82 100644 --- a/src/libsync/propagatorjobs.cpp +++ b/src/libsync/propagatorjobs.cpp @@ -107,7 +107,6 @@ void PropagateLocalRemove::start() } QString removeError; - const auto availability = propagator()->syncOptions()._vfs->availability(_item->_file, Vfs::AvailabilityRecursivity::RecursiveAvailability); if (_moveToTrash && propagator()->syncOptions()._vfs->mode() != OCC::Vfs::WindowsCfApi) { if ((QDir(filename).exists() || FileSystem::fileExists(filename)) && !FileSystem::moveToTrash(filename, &removeError)) {